import request from '@/utils/request'

// 创建经验等级
export function createExperienceLevels(data) {
  return request({
    url: '/system/experience-levels/create',
    method: 'post',
    data: data
  })
}

// 更新经验等级
export function updateExperienceLevels(data) {
  return request({
    url: '/system/experience-levels/update',
    method: 'put',
    data: data
  })
}

// 删除经验等级
export function deleteExperienceLevels(id) {
  return request({
    url: '/system/experience-levels/delete?id=' + id,
    method: 'delete'
  })
}

// 获得经验等级
export function getExperienceLevels(id) {
  return request({
    url: '/system/experience-levels/get?id=' + id,
    method: 'get'
  })
}

// 获得经验等级分页
export function getExperienceLevelsPage(params) {
  return request({
    url: '/system/experience-levels/page',
    method: 'get',
    params
  })
}
// 导出经验等级 Excel
export function exportExperienceLevelsExcel(params) {
  return request({
    url: '/system/experience-levels/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}